Kohana3 - ErrorException [ Notice ]: Undefined index: id - Error calling Auth::instance()

Posted by ahmet2106 on Stack Overflow See other posts from Stack Overflow or by ahmet2106
Published on 2010-05-12T14:55:52Z Indexed on 2010/05/12 15:24 UTC
Read the original article Hit count: 359

Filed under:
|
|
|
|

Hello everybody,

I've now a Problem with the newest Version of KohanaPHP (kohanaphp.com).

After I've registered me and logged in into my test page, some minutes later, there is now the error:

ErrorException [ Notice ]: Undefined index: id

MODPATH/orm/classes/kohana/orm.php [ 1316 ]
1311   *
1312   * @return  mixed  primary key
1313   */
1314  public function pk()
1315  {
1316   return $this->_object[$this->_primary_key];
1317  }
1318 
1319  /**
1320   * Returns whether or not primary key is empty
1321   *

I've searched a lot in Google, but i never found an answer, the Problem now is, that I cant reloggin to get a new instance, because I've to call Auth::instance()->login() again, and Auth::instance() is not callable.

Whats todo now, how can I fix it, is there already a new Version of ORM or Auth Module?

Thanks everybody Ahmet

© Stack Overflow or respective owner

Related posts about kohana3

Related posts about orm